package com.TestDemo.Test2;

public class TestCatchOut {
    public static void main(String[] args) {
        System.out.println(test());
        System.out.println(f(2));
    }



    public static int test(){
        int n = 5;
        try{
            n  = n/0;
        }catch (Exception e){
            n =10;

        }finally {
            n = 15;
        }
        return n;
    }


    public static int f(int value) { try {return value * value; } finally { if (value == 2) { return 0; } } }





}
